package com.ahms.customer.domain;

import com.ahms.common.annotation.Excel;
import com.ahms.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 新闻图片对象 ry_news_image
 * 
 * @author 
 * @date 2025-04-09
 */
public class NewsImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    private Long imageId;

    /** 关联新闻ID */
    @Excel(name = "关联新闻ID")
    private Long newsId;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String imageUrl;

    public void setImageId(Long imageId) 
    {
        this.imageId = imageId;
    }

    public Long getImageId() 
    {
        return imageId;
    }

    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("imageId", getImageId())
            .append("newsId", getNewsId())
            .append("imageUrl", getImageUrl())
            .append("createTime", getCreateTime())
            .toString();
    }
}
